package com.qianli.cashmama.trade.common.enums;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/7/29
 * Time: 下午6:25
 *
 * @author
 */
public enum TradeCloseTypeEnum {
    /**/
    REPAYMENT_SUCCESS(1, "REPAYMENT_SUCCESS", "还款成功"),
    AUDIT_REJECT(2, "AUDIT_REJECT", "信审拒绝"),
    LOAN_REJECT(3, "LOAN_CLOSED", "放款失败"),
    ADMIN_HANDLE(4, "ADMIN_HANDLE", "后台关闭"),
    CLOSE(5, "CLOSE", "订单关闭"),
    SIGN_ERROR(6, "SIGN_ERROR", "签名失败");

    private int type;
    private String code;
    private String desc;

    TradeCloseTypeEnum(int type, String code, String desc) {
        this.type = type;
        this.code = code;
        this.desc = desc;
    }

    public int getType() {
        return type;
    }

    public TradeCloseTypeEnum setType(int type) {
        this.type = type;
        return this;
    }

    public String getCode() {
        return code;
    }

    public TradeCloseTypeEnum setCode(String code) {
        this.code = code;
        return this;
    }

    public String getDesc() {
        return desc;
    }

    public TradeCloseTypeEnum setDesc(String desc) {
        this.desc = desc;
        return this;
    }
}
